﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace csharp
{
    public class ref_out_parameters_fsharpBehavior
    {
        public bool TryParse(string x, ref int v)
        {
            if (x == "1")
            {
                v = 1;
                return true;
            }
            return false;
        }
        public bool TryParse_( ref int v,string x)
        {
            if (x == "1")
            {
                v = 1;
                return true;
            }
            return false;
        }
        public bool TryParse2(string x, out int v)
        {
            if (x == "1")
            {
                v = 1;
                return true;
            }
            v = -1;
            return false;
        }
        public bool TryParse2_(out int v, string x)
        {
            if (x == "1")
            {
                v = 1;
                return true;
            }
            v = -1;
            return false;
        }
    }
}
